#pragma once

#include "../protocol/ProtocolHook_Server.h"

class CKeyNameEdit : public CEdit
{
	DECLARE_DYNAMIC(CKeyNameEdit)

public:
	CKeyNameEdit();
	virtual ~CKeyNameEdit();

	ProtocolHook::SKeyInfo	_key;
	void		UpdateDataText();

protected:
	DECLARE_MESSAGE_MAP()

	CString		_GetKeyString(int code);

public:
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnSysChar(UINT nChar, UINT nRepCnt, UINT nFlags);

};


